package com.bw.mallshot.mvvm.model;

import com.blankj.utilcode.util.LogUtils;
import com.bw.mvvm.entity.BaseEntity;
import com.bw.mvvm.mvvm.model.BaseModel;
import com.bw.mvvm.network.load.HttpEnum;
import com.bw.mvvm.network.load.HttpFactory;

import java.util.HashMap;

import io.reactivex.Observable;

public class SplashModel extends BaseModel {
    //获取token方法
    public Observable<BaseEntity> requestToken(HashMap<String, Object> map) {

        return changeFunc(HttpFactory.create(HttpEnum.Sign).getRetrofit()
                .create(Api.class).requestToken(createBody(map)));
    }

}
